package com.sidianzhong.sdz.service;

import com.sidianzhong.sdz.model.*;
import com.sidianzhong.sdz.utils.PageInfo;
import com.alibaba.fastjson.JSONObject;
import java.util.List;

/**
* Created by hxgqh on 2016/1/7.
*/
public interface AdminService {

    Admin create(Admin item);

    int delete(Integer id);

    int update(Admin item);

    Admin get(Integer id);

    PageInfo<Admin> getListWithPaging(Integer pageNum, Integer pageSize,
                                      String sortItem, String sortOrder, Admin item);

    List<Admin> getList(Integer pageNum, Integer pageSize,
                        String sortItem, String sortOrder, Admin item);

    PageInfo<JSONObject> getListWithObject(Integer pageNum, Integer pageSize,
                                           String sortItem, String sortOrder, Admin item);

    Admin getByPhone(String phone);
}
